package com.example.test0.service.imp;

import com.example.test0.mapper.UserMapper;
import com.example.test0.model.User;
import com.example.test0.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImp implements UserService {
    @Autowired
    private UserMapper userMapper;

    public List<User> FindAllUser() {
        return userMapper.findAllUser();
    }

    public User FindByUsername(String username) {
        return userMapper.findByUsername(username);
    }

    public User FindByUser(User user) {
        return userMapper.findByUser(user);
    }

}
